package com.boot.springBoot.util.excel;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Excel注解
 *
 * @author ysp
 * @since 2019/8/8 19:39
 */
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD,ElementType.METHOD})
public @interface ExcelField {

    String title() default "";

    int width() default 0;

    Align align() default Align.DEFAULT;

    String format() default "";

    int order() default Integer.MAX_VALUE;

    public enum Align {
        LEFT, CENTER, RIGHT, DEFAULT
    }
}
